<template>
  <view class="container">
    <view class="addUrlStr" @click="addUrl">完成</view>
    <view class="inputBack">
      <input class="inputUrl" placeholder="请出入信息" v-model="urlStr"/>
    </view>
  </view>
</template>

<script>
import {addScanSetting, getScanSettingList} from "@/apis/ScanSetting";

export default {
  data() {
    return {
      urlStr: null
    };
  },
  methods: {
    async addUrl() {
      await addScanSetting({urlStr: this.urlStr})
      uni.navigateTo({
        url: '/pagesMine/scan/set-up'
      })
    }
  }
}
</script>

<style lang="less" scoped>
.dflex() {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dflexsb() {
  .dflex();
  justify-content: space-between;
}

.dflexsa() {
  .dflex();
  justify-content: space-around;
}

.container {
  height: 90vh;
  width: 100%;
  font-family: PingFangSC-Semibold, PingFang SC;
  padding: 30rpx;
  box-sizing: border-box;
  overflow: hidden !important;
  background: #c8c7cc;
  color: #333;

  .addUrlStr {
    .dflex();
    display: flex;
    margin-left: 90%;
    width: 10%;
    background-color: #007aff;
    border-radius: 10rpx;
  }

  .inputBack {
    background-color: #F7F7F7;
    height: 100%;
  }

  .inputUrl {
    width: 100%;
    height:5%;
    border-bottom: 1px solid #6a6a6a;
    border-left: 1px solid #6a6a6a;
    border-top: 1px solid #6a6a6a;
    border-right: 1px solid #6a6a6a;
  }
}
</style>
